package org.ricks.ioc.bean.factory;

import org.ricks.common.db.BaseDao;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author chenwei
 * @Title:
 * @Package
 * @Description:
 * @date 2020/8/2511:53
 */
public class DaoContext {

    private static final Map<Class, BaseDao> tableMetaMap = new ConcurrentHashMap();

    public static BaseDao get(Class clazz) {
        return tableMetaMap.get(clazz);
    }

    public static void put(Class clazz, BaseDao dao) {
        tableMetaMap.put(clazz, dao);
    }


}
